export default function MemberApi() {
    let _u = uni.$u
    return {
        // 经验值明细
        experienceList(params: any) {
            return _u.post('/member/experience/log/list', params, {
                useJsonParam: true
            })
        },
        // 会员权益
        queryVipRight(params: any) {
            return _u.post('/member/app/detail', params)
        },
        queryVipinfo(params: any) {
            return _u.post('/member/detail', params)
        },
        // 查询商户商品限购明细
        queryMemberRestriction(params: any) {
            return _u.post('/member/member-privilege-restriction/queryMemberRestriction', params)
        },
        // 查询会员优惠
        queryMemberDiscountsApp(params: any) {
            return _u.get('/member/member-privilege-discounts/queryMemberDiscountsApp', params)
        },
        // 经验统计
        queryEx() {
            return _u.post('/member/app/experienceStatistics')
        },
        // 经验值明细列表分页
        queryExPage(params: any) {
            return _u.post('/member/app/experienceLogPage', params, {
                // useJsonParam:true
            })
        },
        // 返利金额查询
        queryWalletInfo(params: any) {
            return _u.get('/member/rebate/statistics', params, {
                useJsonParam: true
            })
        },
        // 收支明细
        queryDetail(params: any) {
            return _u.get('/member/rebate/detailPage', params, {
                useJsonParam: true
            })
        }
    }
}
